import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    component: () => import('@/views/Common.vue'),
    meta: {
      title: '主页',
    },
  },
  {
    path: '/blog',
    component: () => import('../views/Common.vue'),
    meta: {
      title: '日志',
    },
  },
  {
    path: '/photo',
    component: () => import('../views/Common.vue'),
    meta: {
      title: '相册',
    },
  },
  {
    path: '/message',
    component: () => import('../views/Common.vue'),
    meta: {
      title: '留言板',
    },
  },
  {
    path: '/tips',
    component: () => import('../views/Common.vue'),
    meta: {
      title: '说说',
    },
  },
  {
    path: '/self',
    component: () => import('../views/Common.vue'),
    meta: {
      title: '个人档',
    },
  },
  {
    path: '/music',
    component: () => import('../views/Common.vue'),
    meta: {
      title: '音乐',
    },
  },
  {
    path: '/more',
    component: () => import('../views/Common.vue'),
    meta: {
      title: '更多',
    },
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
